package org.ch00.test04.demo01;

/**
 * @author CSY
 * @date 2025 - 03 - 03
 */
public class DotNetTeacher {
    private String name;
    private String school;

    public DotNetTeacher() {
    }

    public DotNetTeacher(String name, String school) {
        this.name = name;
        this.school = school;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public void teach() {
        System.out.println("打开VS...");
        System.out.println("讲课");
    }

    public void jieShao(){
        System.out.println("大家好，我叫："+this.name);
    }
}
